package com.example.service1.common.aop;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

@Component("Service1AopCommon")
@Aspect
public class Service1Aop {

    @Pointcut(value = "execution(* com.example.service1.common.api.fallback.Service1Fallback.*(..))")
    public void pointcutFallback(){
    }

    @Before("pointcutFallback()")
    public void beforeNoticeFallback(){
        System.out.println("触发feign里的fallback方法");
    }
}
